package cn.org.book.shop.article.domain;

import cn.org.book.shop.common.annotation.Excel;
import cn.org.book.shop.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文章数据配置对象 ap_article_data_configuration
 *
 * @author wanghongjie
 * @date 2020-11-30
 */
public class ApArticleDataConfiguration extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 文章ID
     */
    @Excel(name = "文章ID")
    private Long articleId;

    /**
     * 封面图片
     */
    @Excel(name = "封面图片")
    private String cover;

    /**
     * 关键词：查询关键词
     */
    @Excel(name = "关键词：查询关键词")
    private String keywords;

    /**
     * 文章显示类型：最新、轮播图等
     */
    @Excel(name = "文章显示类型：最新、轮播图等")
    private String displayType;

    /**
     * 扩展字段
     */
    @Excel(name = "扩展字段")
    private String ext1;

    /**
     * 文章名称
     */
    @Excel(name = "文章名称")
    private String articleName;

    /**
     * 文章配置信息
     */
    private ApArticleConfig articleConfig;
    /**
     * 文章信息
     */
    private ApArticle apArticle;
    /**
     * 文章描述
     */
    private String desc;

    public ApArticle getApArticle() {
        return apArticle;
    }

    public void setApArticle(ApArticle apArticle) {
        this.apArticle = apArticle;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public ApArticleConfig getArticleConfig() {
        return articleConfig;
    }

    public void setArticleConfig(ApArticleConfig articleConfig) {
        this.articleConfig = articleConfig;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }

    public Long getArticleId() {
        return articleId;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getCover() {
        return cover;
    }


    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public void setDisplayType(String displayType) {
        this.displayType = displayType;
    }

    public String getDisplayType() {
        return displayType;
    }

    public void setExt1(String ext1) {
        this.ext1 = ext1;
    }

    public String getExt1() {
        return ext1;
    }

    public void setArticleName(String articleName) {
        this.articleName = articleName;
    }

    public String getArticleName() {
        return articleName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("articleId", getArticleId())
                .append("cover", getCover())
                .append("keywords", getKeywords())
                .append("displayType", getDisplayType())
                .append("ext1", getExt1())
                .append("articleName", getArticleName())
                .toString();
    }
}
